<?php
$ms = "Contacts";
$subMenu = "contact-menu.php";
include "header.php";
?>
<div class="cornerAll">
	<ul class="breadcrumb">
		<li><a href="index.php" class="fist_link">Home</a></li>
		<li><a href="contact.php" class="second_link">Contacts</a></li>
		<li><a href="presses.php">John Jenkins</a></li>
	</ul>
	<div class="left">
		<h1>John Jenkins - 1000 Island Publishers Ltd</h1>
		<div style="padding-top:10px">
			<ul class="tab">
				<li class="tabs" id="note-tab">Notes</li>
				<li id="etab">Equipment (1)</li>
				<li id="offtab">Offers (1)</li>
				<li id="bidtab">Bids (1)</li>
				<li id="ordtab">Orders (1)</li>
				<li id="tasktab">Tasks (1)</li>
				<li id="reqtab">Required equipment (1)</li>
			</ul>
			<div id="note">
				<div style="width:590px; margin-bottom:5px;">
					<textarea>Add note here</textarea>
				</div>
				<a style="float:right; margin-right:12px;" href="#" class="bt">Add</a>
				<div class="clear"></div>
				<div class="note">
					Speaking to a few people about this.  Let me know before you sell this as I may have promised out to someone.
					<div class="note-by">Jason Granite - 3 days ago</div>
				</div>
				<div class="clear"></div>
				<div class="note">
					Speaking to a few people about this.  Let me know before you sell this as I may have promised out to someone.
					<div class="note-by">Jason Granite - 3 days ago</div>
				</div>
				<div class="clear"></div>
				<div class="note">
					Speaking to a few people about this.  Let me know before you sell this as I may have promised out to someone.
					<div class="note-by">Jason Granite - 3 days ago</div>
				</div>
			</div>
			<div id="e" style="display:none;">
				<div style="width:590px; padding-top:5px;">
					<table>
						<thead>
							<tr>
								<th>Press</th>
								<th>Type</th>
								<th>Year</th>
								<th></th>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td><a href="press.php">Heidelberg</a></td>
								<td>Cutter</td>
								<td>1995</td>	
								<td><a href="press.php">View</a></td>
							</tr>
						</tbody>
					</table>
				</div>
			</div>
			<div id="bid" style="display:none;">
				<div style="width:590px; padding-top:5px;">
					<table>
						<thead>
							<tr>
								<th>Auction</th>
								<th>Item</th>
								<th>Seller</th>
								<th>Min price</th>
								<th>Max bid</th>
								<th></th>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td>Fri Dec 16th</td>
								<td><a href="../auction_item.html">Heidelberg SM 52 - 2 P</a></td>
								<td><a href="contact.php">Jenny Johnson</a></td>
								<td>$100,000</td>
								<td>$110,000</td>
								<td><a href="auction.php">Buy now</a></td>
							</tr>
						</tbody>
					</table>
				</div>
			</div>
			<div id="off" style="display:none;">
				<div style="width:590px; padding-top:5px;">
					<a href="add-press.php" class="bt">Add offer</a>
					<table>
						<thead>
							<tr>
								<th>Date</th>
								<th>Press</th>
								<th>Customer</th>
								<th>Offer</th>
								<th></th>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td>Mon 16th Nov 10</td>
								<td><a href="press.php">Heidelberg</a></td>
								<td>John Jenkins</td>
								<td>$100,000</td>
								<td><a href="press.php">Accept</a> | <a href="press.php">Decline</a></td>
							</tr>
						</tbody>
					</table>
				</div>
			</div>
			<div id="ord" style="display:none;">
				<div style="width:590px; padding-top:5px;">
					<table>
						<thead>
							<tr>
								<th>Items</th>
								<th>Shipping to</th>
								<th>Price</th>
								<th></th>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td>4</td>
								<td>Shipping to</td>
								<td>Price</td>
								<td><a href="order.php">View</a></td>
							</tr>
						</tbody>
					</table>
				</div>
			</div>
			<div id="task" style="display:none;">
				<div style="width:590px; padding-top:5px;">
					<a id="addpress" href="#" class="bt">Add task</a>
					<div id="addtaskform">
						<?php 
							$search = new Form();
							$search->addField("text","Task");
							$search->addField("select","Assign to");
							$search->addField("datepicker","Due date");
							$search->button("Search");
							$search->draw();
						?>
					</div>
				</div>
			</div>
			<div id="req" style="display:none;">
				<div style="width:590px; padding-top:5px;">
					<a href="add-press.php" class="bt">Add required press</a>
					<table>
						<thead>
							<tr>
								<th>Press</th>
								<th>Type</th>
								<th>Year</th>
								<th></th>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td><a href="press.php">Heidelberg</a></td>
								<td>Cutter</td>
								<td>1995</td>	
								<td><a href="press.php">View</a></td>
							</tr>
						</tbody>
					</table>
				</div>
			</div>
			<div id="offer" style="display:none;">
				<a style="float:right; margin-right:12px;" href="#" class="bt">Add offer</a>
				<div class="clear"></div>
				<div style="width:280px; margin-bottom:5px;">
					<p>No offers on this press</p>
				</div>
			</div>
		</div>
		<script>
		$('#note-tab').click(function() {
			showNone();
  			$('#note').show();
			$('#note-tab').addClass("tabs");
		});
		$('#etab').click(function() {
			showNone();
  			$('#e').show();
			$('#etab').addClass("tabs");
		});
		$('#offtab').click(function() {
			showNone();
  			$('#off').show();
			$('#offtab').addClass("tabs");
		});
		$('#ordtab').click(function() {
			showNone();
  			$('#ord').show();
			$('#ordtab').addClass("tabs");
		});
		$('#tasktab').click(function() {
			showNone();
  			$('#task').show();
			$('#tasktab').addClass("tabs");
		});
		$('#reqtab').click(function() {
			showNone();
  			$('#req').show();
			$('#reqtab').addClass("tabs");
		});
		$('#bidtab').click(function() {
			showNone();
  			$('#bid').show();
			$('#bidtab').addClass("tabs");
		});
		$('#addtask').click(function() {
			$('#addtask').hide();
			$('#addtaskform').show();
		});
		function showNone(){
			$('#note').hide();
			$('#bid').hide();
			$('#e').hide();
			$('#off').hide();
			$('#ord').hide();
			$('#task').hide();
  			$('#req').hide();
			$('#note-tab').removeClass("tabs");
			$('#bidtab').removeClass("tabs");
			$('#etab').removeClass("tabs");
			$('#offtab').removeClass("tabs");
			$('#ordtab').removeClass("tabs");
			$('#tasktab').removeClass("tabs");
  			$('#reqtab').removeClass("tabs");
		}
		</script>
	</div>
	<div class="right">
		<div class="contact-sheet">
			<h2>Contact information</h2>
			<a href="mailto:jj@pp.com">jj@pp.com</a><br/>
			029837652413<br/>
			Website member<br/><br/>
			<h2>Company information</h2>
				<a href="company.php">1000 Island Publishers Ltd</a><br/>
				79 King Street East, Gananoque, ON, K7G 1E8<br/>
				Canada<br/>
				+1 (613) 382-2156<br/>
				<a href="#">16 contacts</a>
			</div>
			<div class="clear"></div>
	</div>
	<div class="clear"></div>
</div>
<?php  
function drawRows(){
	for($i = 0; $i < 10; $i++){
	?>
		<tr>
			<td><a href="contact.php">John Jenkins</a></td>
			<td>Pacific presses</td>
			<td>jj@pp.com</td>
			<td>02092876252</td>
			<td><a href="contact.php">View</a></td>
		</tr>
	<?php 
	}
}
include "footer.php";
?>